package com.atguigu.test01;

import java.util.concurrent.ArrayBlockingQueue;

public class test04 {
    public static void main(String[] args) throws InterruptedException {
        ArrayBlockingQueue<String> queue = new ArrayBlockingQueue<String>(3);

        queue.put("a");
        queue.put("b");
        queue.put("c");
        //queue.put("d");
        System.out.println(queue.take());
        System.out.println(queue.take());
        System.out.println(queue.take());
       // System.out.println(queue.take());
    }
}
